import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';
import 'package:hayll_app_village_master/hayll/village_manager/home/main_page/bean/company.dart';
import 'package:hayll_app_village_master/hayll/village_manager/home/main_page/bean/village.dart';
import 'package:hayll_app_village_master/hayll/village_manager/home/village_simple_component/state.dart';

class MainState implements Cloneable<MainState> {
  TabController controller;
  CompanyResult selectedCompany;
  List<CompanyResult> commanyList = List<CompanyResult>();

  VillageSimpleResult selectedVillage;
  List<VillageSimpleResult> villageList = List<VillageSimpleResult>();
  VillageSimpleState villageState = VillageSimpleState();

  @override
  MainState clone() {
    var state = MainState()
      ..controller = controller
      ..commanyList = commanyList
      ..selectedCompany = selectedCompany
      ..selectedVillage = selectedVillage
      ..villageList = villageList
      ..villageState = villageState;
    return state;
  }
}

MainState initMainPageState(Map<String, dynamic> args) {
  var state = MainState();
  return state;
}
